]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
NetworkMenu: fix regression in access-point-removed
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 3 Nov 2011 09:02:03 +0000 (10:02 +0100)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sun, 6 Nov 2011 21:55:30 +0000 (16:55 -0500)
When changing _findNetwork with _findExistingNetwork, I changed
the return value to avoid searching twice for the access point,
and changed some names. I forgot to update all points where those
names were used.

https://bugzilla.gnome.org/show_bug.cgi?id=663278

js/ui/status/network.js

index aa9e2342a9023ea482794af224f995dca8a33885..b12730d0ec41fbd08a873601d9a8077c9f92566e 100644 (file)
@@ -1326,7 +1326,7 @@ NMDeviceWireless.prototype = {
                     this._overflowItem = null;
                 }
             }
-            this._networks.splice(pos, 1);
+            this._networks.splice(res.network, 1);
 
         } else if (apObj.item)
             apObj.item.updateAccessPoints(apObj.accessPoints);